//
//  MBBlHelpViewController.m
//  mZero-iOS
//
//  Created by catch on 16/7/14.
//  Copyright © 2016年 Shenzhen Maker Works Technology Co., Ltd. All rights reserved.
//

#import "MBBlHelpViewController.h"
#import "MBLocalizableLabel.h"
#import "UILabel+VerticalAlign.h"
#import "UIColor+MB.h"
#import "MBUtils.h"
#import "MBMacros.h"

@interface MBBlHelpViewController ()

@property (weak, nonatomic) IBOutlet UILabel* topTitleLabel;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *title1;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *title2;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *title3;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *title4;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *openSwitchLabel;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *settingBlueToothLabel;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *connectBlueToothLabel;
@property (weak, nonatomic) IBOutlet MBLocalizableLabel *connectSuccessLab;


@end

@implementation MBBlHelpViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    _topTitleLabel.font = MFont(IsPhone?16:25);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [_openSwitchLabel alignTop];
    [_settingBlueToothLabel alignTop];
    [_connectBlueToothLabel alignTop];
    [_connectSuccessLab alignTop];
    
    UIFont* font = IsPhone ? MFont(11) : MFont(14);
    _title1.font = font;
    _title2.font = font;
    _title3.font = font;
    _title4.font = font;
    _openSwitchLabel.font = font;
    _settingBlueToothLabel.font = font;
    _connectBlueToothLabel.font = font;
    _connectSuccessLab.font = font;
}

- (IBAction)backButtonClicked:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (BOOL)shouldAutorotate{
    return YES;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskLandscape;
}


@end
